home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
vol_200
/
292_04
/
t6811.asm
< prev
next >
Wrap
Assembly Source File
|
1990-07-16
|
17KB
|
908 lines
.title AS6811 Assembler Test
.area DIRECT
.blkb 0x33
dir: .byte 0,0
ext = 0x1122
offset = 0x0044
.area AS6811
.setdp 0,DIRECT
aba ;1B
abx ;3A
aby ;18 3A
adca #0x10 ;89 10
adca *dir ;99 33
adca ,x ;A9 00
adca *dir,x ;A9 33
adca offset,x ;A9 44
adca ,y ;18 A9 00
adca *dir,y ;18 A9 33
adca offset,y ;18 A9 44
adca ext ;B9 11 22
adcb #0x10 ;C9 10
adcb *dir ;D9 33
adcb ,x ;E9 00
adcb *dir,x ;E9 33
adcb offset,x ;E9 44
adcb ,y ;18 E9 00
adcb *dir,y ;18 E9 33
adcb offset,y ;18 E9 44
adcb ext ;F9 11 22
adc a #0x10 ;89 10
adc a *dir ;99 33
adc a ,x ;A9 00
adc a *dir,x ;A9 33
adc a offset,x ;A9 44
adc a ,y ;18 A9 00
adc a *dir,y ;18 A9 33
adc a offset,y ;18 A9 44
adc a ext ;B9 11 22
adc b #0x10 ;C9 10
adc b *dir ;D9 33
adc b ,x ;E9 00
adc b *dir,x ;E9 33
adc b offset,x ;E9 44
adc b ,y ;18 E9 00
adc b *dir,y ;18 E9 33
adc b offset,y ;18 E9 44
adc b ext ;F9 11 22
adda #0x10 ;8B 10
adda *dir ;9B 33
adda ,x ;AB 00
adda *dir,x ;AB 33
adda offset,x ;AB 44
adda ,y ;18 AB 00
adda *dir,y ;18 AB 33
adda offset,y ;18 AB 44
adda ext ;BB 11 22
addb #0x10 ;CB 10
addb *dir ;DB 33
addb ,x ;EB 00
addb *dir,x ;EB 33
addb offset,x ;EB 44
addb ,y ;18 EB 00
addb *dir,y ;18 EB 33
addb offset,y ;18 EB 44
addb ext ;FB 11 22
addd #0x5566 ;C3 55 66
addd *dir ;D3 33
addd ,x ;E3 00
addd *dir,x ;E3 33
addd offset,x ;E3 44
addd ,y ;18 E3 00
addd *dir,y ;18 E3 33
addd offset,y ;18 E3 44
addd ext ;F3 11 22
add a #0x10 ;8B 10
add a *dir ;9B 33
add a ,x ;AB 00
add a *dir,x ;AB 33
add a offset,x ;AB 44
add a ,y ;18 AB 00
add a *dir,y ;18 AB 33
add a offset,y ;18 AB 44
add a ext ;BB 11 22
add b #0x10 ;CB 10
add b *dir ;DB 33
add b ,x ;EB 00
add b *dir,x ;EB 33
add b offset,x ;EB 44
add b ,y ;18 EB 00
add b *dir,y ;18 EB 33
add b offset,y ;18 EB 44
add b ext ;FB 11 22
add d #0x5566 ;C3 55 66
add d *dir ;D3 33
add d ,x ;E3 00
add d *dir,x ;E3 33
add d offset,x ;E3 44
add d ,y ;18 E3 00
add d *dir,y ;18 E3 33
add d offset,y ;18 E3 44
add d ext ;F3 11 22
anda #0x10 ;84 10
anda *dir ;94 33
anda ,x ;A4 00
anda *dir,x ;A4 33
anda offset,x ;A4 44
anda ,y ;18 A4 00
anda *dir,y ;18 A4 33
anda offset,y ;18 A4 44
anda ext ;B4 11 22
andb #0x10 ;C4 10
andb *dir ;D4 33
andb ,x ;E4 00
andb *dir,x ;E4 33
andb offset,x ;E4 44
andb ,y ;18 E4 00
andb *dir,y ;18 E4 33
andb offset,y ;18 E4 44
andb ext ;F4 11 22
and a #0x10 ;84 10
and a *dir ;94 33
and a ,x ;A4 00
and a *dir,x ;A4 33
and a offset,x ;A4 44
and a ,y ;18 A4 00
and a *dir,y ;18 A4 33
and a offset,y ;18 A4 44
and a ext ;B4 11 22
and b #0x10 ;C4 10
and b *dir ;D4 33
and b ,x ;E4 00
and b *dir,x ;E4 33
and b offset,x ;E4 44
and b ,y ;18 E4 00
and b *dir,y ;18 E4 33
and b offset,y ;18 E4 44
and b ext ;F4 11 22
asla ;48
aslb ;58
asld ;05
asl a ;48
asl b ;58
asl d ;05
asl ,x ;68 00
asl *dir,x ;68 33
asl offset,x ;68 44
asl ,y ;18 68 00
asl *dir,y ;18 68 33
asl offset,y ;18 68 44
asl *dir ;78 00 33
asl ext ;78 11 22
asra ;47
asrb ;57
asr a ;47
asr b ;57
asr ,x ;67 00
asr *dir,x ;67 33
asr offset,x ;67 44
asr ,y ;18 67 00
asr *dir,y ;18 67 33
asr offset,y ;18 67 44
asr *dir ;77 00 33
asr ext ;77 11 22
bclr *dir, #0x5A ;15 33 5A
bclr *dir,x, #0x5C ;1D 33 5C
bclr offset,x, #0x5D ;1D 44 5D
bclr *dir,y, #0x5C ;18 1D 33 5C
bclr offset,y, #0x5D ;18 1D 44 5D
bita #0x10 ;85 10
bita *dir ;95 33
bita ,x ;A5 00
bita *dir,x ;A5 33
bita offset,x ;A5 44
bita ,y ;18 A5 00
bita *dir,y ;18 A5 33
bita offset,y ;18 A5 44
bita ext ;B5 11 22
bitb #0x10 ;C5 10
bitb *dir ;D5 33
bitb ,x ;E5 00
bitb *dir,x ;E5 33
bitb offset,x ;E5 44
bitb ,y ;18 E5 00
bitb *dir,y ;18 E5 33
bitb offset,y ;18 E5 44
bitb ext ;F5 11 22
bit a #0x10 ;85 10
bit a *dir ;95 33
bit a ,x ;A5 00
bit a *dir,x ;A5 33
bit a offset,x ;A5 44
bit a ,y ;18 A5 00
bit a *dir,y ;18 A5 33
bit a offset,y ;18 A5 44
bit a ext ;B5 11 22
bit b #0x10 ;C5 10
bit b *dir ;D5 33
bit b ,x ;E5 00
bit b *dir,x ;E5 33
bit b offset,x ;E5 44
bit b ,y ;18 E5 00
bit b *dir,y ;18 E5 33
bit b offset,y ;18 E5 44
bit b ext ;F5 11 22
1$: brclr *dir, #0x5A, 1$ ;13 33 5A FC
brclr *dir,x, #0x5C, 1$ ;1F 33 5C F8
brclr offset,x,#0x5D,1$ ;1F 44 5D F4
brclr *dir,y, #0x5C, 1$ ;18 1F 33 5C EF
brclr offset,y,#0x5D,1$ ;18 1F 44 5D EA
2$: brset *dir, #0x5A, 2$ ;12 33 5A FC
brset *dir,x, #0x5C, 2$ ;1E 33 5C F8
brset offset,x,#0x5D,2$ ;1E 44 5D F4
brset *dir,y, #0x5C, 2$ ;18 1E 33 5C EF
brset offset,y,#0x5D,2$ ;18 1E 44 5D EA
bra . ;20 FE
brn . ;21 FE
bhi . ;22 FE
bls . ;23 FE
bcc . ;24 FE
bhs . ;24 FE
bcs . ;25 FE
blo . ;25 FE
bne . ;26 FE
beq . ;27 FE
bvc . ;28 FE
bvs . ;29 FE
bpl . ;2A FE
bmi . ;2B FE
bge . ;2C FE
blt . ;2D FE
bgt . ;2E FE
ble . ;2F FE
bsr . ;8D FE
bset *dir, #0x5A ;14 33 5A
bset *dir,x, #0x5C ;1C 33 5C
bset offset,x, #0x5D ;1C 44 5D
bset *dir,y, #0x5C ;18 1C 33 5C
bset offset,y, #0x5D ;18 1C 44 5D
cba ;11
clc ;0C
cli ;0E
clra ;4F
clrb ;5F
clr a ;4F
clr b ;5F
clr ,x ;6F 00
clr *dir,x ;6F 33
clr offset,x ;6F 44
clr ,y ;18 6F 00
clr *dir,y ;18 6F 33
clr offset,y ;18 6F 44
clr *dir ;7F 00 33
clr ext ;7F 11 22
clv ;0A
cmpa #0x10 ;81 10
cmpa *dir ;91 33
cmpa ,x ;A1 00
cmpa *dir,x ;A1 33
cmpa offset,x ;A1 44
cmpa ,y ;18 A1 00
cmpa *dir,y ;18 A1 33
cmpa offset,y ;18 A1 44
cmpa ext ;B1 11 22
cmpb #0x10 ;C1 10
cmpb *dir ;D1 33
cmpb ,x ;E1 00
cmpb *dir,x ;E1 33
cmpb offset,x ;E1 44
cmpb ,y ;18 E1 00
cmpb *dir,y ;18 E1 33
cmpb offset,y ;18 E1 44
cmpb ext ;F1 11 22
cmp a #0x10 ;81 10
cmp a *dir ;91 33
cmp a ,x ;A1 00
cmp a *dir,x ;A1 33
cmp a offset,x ;A1 44
cmp a ,y ;18 A1 00
cmp a *dir,y ;18 A1 33
cmp a offset,y ;18 A1 44
cmp a ext ;B1 11 22
cmp b #0x10 ;C1 10
cmp b *dir ;D1 33
cmp b ,x ;E1 00
cmp b *dir,x ;E1 33
cmp b offset,x ;E1 44
cmp b ,y ;18 E1 00
cmp b *dir,y ;18 E1 33
cmp b offset,y ;18 E1 44
cmp b ext ;F1 11 22
coma ;43
comb ;53
com a ;43
com b ;53
com ,x ;63 00
com *dir,x ;63 33
com offset,x ;63 44
com ,y ;18 63 00
com *dir,y ;18 63 33
com offset,y ;18 63 44
com *dir ;73 00 33
com ext ;73 11 22
cpx #0x5566 ;8C 55 66
cpx *dir ;9C 33
cpx ,x ;AC 00
cpx *dir,x ;AC 33
cpx offset,x ;AC 44
cpx ,y ;CD AC 00
cpx *dir,y ;CD AC 33
cpx offset,y ;CD AC 44
cpx ext ;BC 11 22
cpy #0x5566 ;18 8C 55 66
cpy *dir ;18 9C 33
cpy ,x ;1A AC 00
cpy *dir,x ;1A AC 33
cpy offset,x ;1A AC 44
cpy ,y ;18 AC 00
cpy *dir,y ;18 AC 33
cpy offset,y ;18 AC 44
cpy ext ;18 BC 11 22
daa ;19
deca ;4A
decb ;5A
dec a ;4A
dec b ;5A
dec ,x ;6A 00
dec *dir,x ;6A 33
dec offset,x ;6A 44
dec ,y ;18 6A 00
dec *dir,y ;18 6A 33
dec offset,y ;18 6A 44
dec *dir ;7A 00 33
dec ext ;7A 11 22
des ;34
dex ;09
dey ;18 09
eora #0x10 ;88 10
eora *dir ;98 33
eora ,x ;A8 00
eora *dir,x ;A8 33
eora offset,x ;A8 44
eora ,y ;18 A8 00
eora *dir,y ;18 A8 33
eora offset,y ;18 A8 44
eora ext ;B8 11 22
eorb #0x10 ;C8 10
eorb *dir ;D8 33
eorb ,x ;E8 00
eorb *dir,x ;E8 33
eorb offset,x ;E8 44
eorb ,y ;18 E8 00
eorb *dir,y ;18 E8 33
eorb offset,y ;18 E8 44
eorb ext ;F8 11 22
eor a #0x10 ;88 10
eor a *dir ;98 33
eor a ,x ;A8 00
eor a *dir,x ;A8 33
eor a offset,x ;A8 44
eor a ,y ;18 A8 00
eor a *dir,y ;18 A8 33
eor a offset,y ;18 A8 44
eor a ext ;B8 11 22
eor b #0x10 ;C8 10
eor b *dir ;D8 33
eor b ,x ;E8 00
eor b *dir,x ;E8 33
eor b offset,x ;E8 44
eor b ,y ;18 E8 0